const express = require('express')
const router = express.Router()

const questionService = require('../service/questionService')

router.get('/getAllQuestion', questionService.getAllQuestion)
router.get('/getAdminAllQuestion', questionService.getAdminAllQuestion)
router.post('/getAllComment', questionService.getAllComment)
router.post('/addQuestion', questionService.addQuestion)
router.post('/addComment', questionService.addComment)
router.post('/getSelfQuestion', questionService.getSelfQuestion)
router.post('/deleteQuestion', questionService.deleteQuestion)

module.exports = router